package com.ssd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssd.entity.OrderCollectEntity;
import com.ssd.vo.CollectBillVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface OrderCollectMapper extends BaseMapper<OrderCollectEntity>{

    /**
     * 获取一定日期内合作商收益
     * @param partnerId
     * @param start
     * @param end
     * @return
     */
    List<CollectBillVO> getCollect(@Param("partnerId") Integer partnerId, @Param("start") LocalDate start, @Param("end") LocalDate end);

    /**
     *
     * @param collectType
     * @param start
     * @param end
     * @return
     */
    List<CollectBillVO> getAmountCollect(@Param("collectType") Integer collectType, @Param("start") LocalDate start, @Param("end") LocalDate end);
}
